﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace Jage.Logic.Crud
{
    public class Sprite
    {

        public static Data.Sprite GetNew(Guid spritesheetId, Rectangle rectangle, Point origin, int sortIndex)
        {
            return new Data.Sprite()
                       {
                           SpriteId = Guid.NewGuid(),
                           SpritesheetId = spritesheetId,
                           X = rectangle.X,
                           Y = rectangle.Y,
                           Width = rectangle.Width,
                           Height = rectangle.Height,
                           OriginX = origin.X,
                           OriginY = origin.Y,
                           SortIndex = sortIndex 
                       };
        }

    }
}
